home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 60
/
060.d81
/
parsin' practice
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
23KB
|
652 lines
100 printchr$(147):poke53280,0:poke53281,0
110 clr:printchr$(14):poke649,0:printchr$(8)
120 gosub6500
130 fora=828to914:readb:pokea,b:c=c+b:next
140 poke6,0:sys828
150 data 120,169,81,141,20,3,169,3,141,21
160 data 3,169,0,141,147,3,141,148,3,88
170 data 96,206,148,3,16,58,169,10,141,148
180 data 3,169,0,133,2,133,4,169,4,133
190 data 3,169,216,133,5,162,4,160,0,177
200 data 4,41,15,197,6,208,9,177,2,41
210 data 127,13,147,3,145,2,200,208,236,230
220 data 3,230,5,202,208,227,173,147,3,73
230 data 128,141,147,3,76,49,234
240 goto340
250 restore:fori=1to87:readd:nexti
260 poke54296,15
270 poke54277,0:poke54278,240
280 readm:readn:reado
290 ifn=-1thenreturn
300 poke54273,m:poke54272,n:poke54276,17:forp=1too:next:poke54276,16
310 goto270
320 data 12,143,100,8,97,500
330 data -1,-1,-1
340 print"";:printtab(5)"[156] "
350 forx=1to3:printtab(5)" ";:printtab(35)" ":nextx
360 printtab(5)" "
370 poke214,2:print:printtab(13)
380 v$="[153][208][193][210][211][201][206]' [208][210][193][195][212][201][195][197]"
390 fori=1tolen(v$):printmid$(v$,i,1)" [157]";
400 forx=1to25:nextx:nexti
410 poke214,3:print:printtab(13)
420 v$="[183][183][183][183][183][183] [183][183][183][183][183][183][183][183]"
430 fori=1tolen(v$):printmid$(v$,i,1)" [157]";
440 forx=1to15:nextx:nexti
450 forx=1to350:nextx
460 poke214,8:print:printtab(10)"[158][215]ould you like sound?":poke649,10
470 poke214,10:print:printtab(13)"[208]ress [154][217] for [217]es"
480 printtab(13)"[208]ress [154][206] for [206]o"
490 getk$:ifk$=""then490
500 ifk$<>"n"andk$<>"y"thengoto490
510 poke649,0
520 ifk$="n"thenmm=1
530 ifk$="y"thengosub2600
540 poke214,8:print:printtab(9)"[158][196]o you need directions?":poke649,10
550 getk$:ifk$=""then550
560 ifk$<>"y"andk$<>"n"thengoto510
570 ifk$="y"thengoto590:poke649,0
580 ifk$="n"thengoto800:poke649,0
590 print"[147]";:poke214,0:print:printtab(14)"[196][201][210][197][195][212][201][207][206][211]"
600 poke214,1:print:printtab(14)"[153][183][183][183][183][183][183][183][183][183][183][154]"
610 poke214,2:print:printtab(4)"[217]ou will be presented with up to 25 sentences.";
620 print" [217]ou should study each one carefully.";
630 print" [198]or each sentence, you will first be asked to pick out the"
640 print"[211][213][194][202][197][195][212][154]. [212]ype out your answer exactly as it appears";
650 print" in the sentence and press [156][210][197][212][213][210][206][146][154]. [193]fter the computer responds"
660 print"to your answer, follow the same procedure for the";
670 print" [214][197][210][194][154]."
680 print" [212]he answers for both subject and verb are often only one";
690 print" word in length, but sometimes they are more.";
700 print" [211]ome main verbs also include helping verbs.
710 [153]" valach subject and verb has its own assigned point value.";
720 [153]" left$arder answers"
730 [153]"have higher point values."
740 [153]"clr (NULL)o end the program early press the sysasc1clr key, rather than the";
750 [153]" space bar, between sentences."
760 [151]214,22:[153]:[153][163]9)"sys--> (NULL)(NULL)val(NULL)(NULL) atn(NULL)(NULL) (NULL)val(NULL) sys<--";
770 [151]214,23:[153]:[153][163]13)"usrusrusrusrusrcloseusrusrusrcloseusrusrusr";
780 [151]649,10
790 [161]k$:[139]k$[178]""[167]790
800 [151]649,0
810 [153]"load";:[151]214,1:[153]:[153][163]14)"(NULL)(NULL)len(NULL)(NULL)close(NULL)(NULL)(NULL)peekval(NULL)cont":[151]214,3:[153]
820 [153][163]5)"peekefore each game you are allowed topick your (NULL)(NULL)len(NULL)(NULL)";
830 [153]" (NULL)(NULL)(NULL)peekval(NULL) (1-7)cont."
840 [151]214,6:[153]:[153][163]5)"valverytime you are given a new sentence,";
850 [153]" the computer will also pick a number.";
860 [153]" right$f your (NULL)(NULL)len(NULL)(NULL) (NULL)(NULL)(NULL)peekval(NULL)cont matches the computer's,";
870 [153]" you will receive a peek(NULL)(NULL)(NULL)(NULL)contof between print100cont and print200cont points,";
880 [153]" contbut only if you answer peek(NULL)(NULL)left$ the subject and the verb correctly!"
890 [151]214,14:[153]:[153][163]5)"print(NULL)ress a key (1-7)":[151]649,10
900 [151]214,15:[153]:[153][163]24)"openusrusrusrusrusr":[151]649,10
910 [161]ln$:[139] ln$[178]""[167]910
920 [139]ln$[179]"1"[176]ln$[177]"7"[167]910
930 [151]649,0
940 [151]214,14:[153]:[153][163]26)"";ln$
950 [151]214,16:[153]:[153][163]5)"clr(NULL)lease select your number of"
960 [153]"sentences (input # and press (NULL)val(NULL)(NULL)(NULL)(NULL)).":[151]649,10
970 [151]214,19:[153]:[153][163]5)"for(NULL)our lenhoice? ";:[141]6280:np[178][197](np$)
980 [139]np[179]1[176]np[177]25[167][151]214,19:[153]:[153]" "
990 [139]np[179]1[176]np[177]25[167][137]970
1000 [151]214,22:[153]:[153][163]13)"clr(NULL)(NULL)val(NULL)(NULL)closeatn(NULL)(NULL) (NULL)val(NULL)";
1010 [161]k$:[139]k$[178]""[167]1010
1020 [151]649,0
1030 [137]1570
1040 bo[178]0:[153]"loadpoke";:[151] 53280,2:[151]53281,1
1050 [153]"clr (NULL)atn(NULL)(NULL)right$(NULL)' (NULL)(NULL)atnlen(NULL)right$lenval waitcont";
1060 [153]"";:[129]x[178]1[164]12:[153][163]0)"clr ":[130]x
1070 [129]z[178]1063[164]1503[169]40:[151]z,160:[151]z[170]54272,4:[130]
1080 [153]"poke":[129]x[178]1[164]11:[153][163]12)"*";[163]27)"*"
1090 [130]x:[153]"";
1100 [151]214,11:[153]:[153]"****************************************";
1110 [153]"":[129]x[178]1[164]11:[153]"print ":[130]x
1120 [153]"":[129]x[178]1[164]11:[153][163]13)"open ":[130]x
1130 [153]"":[129]x[178]1[164]11:[153][163]28)"sys "
1140 [130]x
1150 [151]214,2:[153]:[153][163]1)"(NULL)oint (NULL)alue"
1160 [151]214,4:[153]:[153][163]3)"clr......."
1170 [151]214,5:[153]:[129]x[178]1[164]3:[153][163]3)". .":[130]x
1180 [151]214,8:[153]:[153][163]3)"......."
1190 [151]214,1:[153]:[153][163]14)"for(NULL)our (NULL)umber"
1200 [151]214,2:[153]:[153][163]18)"clr....."
1210 [151]214,3:[153]:[129]x[178]1[164]2:[153][163]18)". .":[130]x
1220 [151]214,5:[153]:[153][163]18)"....."
1230 [151]214,6:[153]:[153][163]13)"forlenomputer (NULL)ick"
1240 [151]214,7:[153]:[153][163]18)"clr....."
1250 [151]214,8:[153]:[129]x[178]1[164]2:[153][163]18)". .":[130]x
1260 [151]214,10:[153]:[153][163]18)"....."
1270 [151]214,2:[153]:[153][163]28)"(NULL)our (NULL)core"
1280 [151]214,4:[153]:[153][163]30)"clr......."
1290 [151]214,5:[153]:[129]x[178]1[164]3:[153][163]30)". .":[130]x
1300 [151]214,8:[153]:[153][163]30)"......."
1310 [151]214,4:[153]:[153][163]19)"";[197](ln$)
1320 [139]ys[179]10[167][151]214,6:[153]:[153][163]32)"";ys
1330 [139]ys[177][178]10[167][151]214,6:[153]:[153][163]31)"";ys
1340 [141]1360
1350 [142]
1360 [129]x[178]1[164]30:cp[178][181]([187](1)[172]7)[170]1:[151]214,9:[153]:[153][163]19)"";cp
1370 [130]x
1380 [139]cp[178][197](ln$)[167][151]6,8:[129]x[178]1[164]1700:[130]x:[141]1400
1390 [142]
1400 [151]6,0:[153]"":[129]x[178]1[164]11:[153][163]13)" ":[130]x
1410 [153]"";:[153][163]11)"stop(NULL)atn(NULL)(NULL)right$(NULL)' (NULL)(NULL)atnlen(NULL)right$lenval!"
1420 [139]mm[178]1[167][137]1450
1430 so[178]54272:[151]so[170]24,15:[151]so[170]6,240:[151]so[170]4,17
1440 [129]v[178]1[164]10:[129]w[178]1[164]185[169]10:[151]so[170]1,w:[130]w:[130]v:[151]so[170]4,32
1450 [151]214,2:[153]:[153][163]16)"peek";[163]18)"(NULL)";[163]20)"(NULL)";[163]22)"(NULL)";[163]24)"(NULL)
1460 poke214,4:print:printtab(16)"[144]........."
1470 poke214,5:print:forx=1to3:printtab(16)". .":nextx
1480 poke214,8:print:printtab(16)"........."
1490 forc=1to22:bo=int(rnd(1)*101)+100:poke214,6:print:printtab(18)"";bo
1500 forx=1to25:nextx
1510 poke214,6:print:printtab(18)" "
1520 forx=1to25:nextx
1530 nextc
1540 poke214,6:print:printtab(18);bo
1550 forx=1to750:nextx
1560 return
1570 qu=150:i=rnd(-ti):restore:nd=1:dimdp(qu):vo=0:qw=0
1580 gosub1040
1590 i=int(rnd(1)*qu)+1:ifdp(i)=1thengoto1590
1600 dp(i)=1:i=(i*5)-4:i=i+96
1610 forh=1toi:readqu$:nexth:readan$(1):readpo$(1):readan$(2):readpo$(2)
1620 gosub5810
1630 poke214,13:print:printtab(4)"[156][211][197][206][212][197][206][195][197] #";n